/**
    公共样式、所有公共样式入口文件
 */
html, body {
    width: 100%;
    height: auto;
    min-width: 1280px;
}
html, body, #root{
    height: 100%;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
}

li {
    list-style: none;
}

// gutter
@for $i from 0 through 200 {
    .m-#{$i} {
        margin: $i+px;
    }
    .m-t-#{$i} {
        margin-top: $i+px;
    }
    .m-b-#{$i} {
        margin-bottom: $i+px;
    }
    .m-l-#{$i} {
        margin-left: $i+px;
    }
    .m-r-#{$i} {
        margin-right: $i+px;
    }
    .m-x-#{$i} {
        margin-right: $i+px;
        margin-left: $i+px;
    }
    .m-y-#{$i} {
        margin-top: $i+px;
        margin-bottom: $i+px;
    }

    .p-#{$i} {
        padding: $i+px;
    }
    .p-t-#{$i} {
        padding-top: $i+px;
    }
    .p-b-#{$i} {
        padding-bottom: $i+px;
    }
    .p-l-#{$i} {
        padding-left: $i+px;
    }
    .p-r-#{$i} {
        padding-right: $i+px;
    }
    .p-x-#{$i} {
        padding-right: $i+px;
        padding-left: $i+px;
    }
    .p-y-#{$i} {
        padding-top: $i+px;
        padding-bottom: $i+px;
    }
    .w-#{$i} {
        width: $i+px;
    }
    .h-#{$i} {
        height: $i+px;
    }
    .w-i-#{$i} {
        width: $i+px !important;
    }
}

// flex
.d-flex {
    display: flex;

}
.flexCC {
    display: flex;
    align-items: center;
    justify-content: center;
}
.flexB {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.d-inline-flex {
    display: inline-flex;
}

.flex-wrap {
    flex-wrap: wrap;
}

.flex-row {
    flex-direction: row;
}

.flex-row-reverse {
    flex-direction: row-reverse;
}

.flex-column {
    flex-direction: column;
}

.flex-column-reverse {
    flex-direction: column-reverse;
}

.justify-content-start {
    justify-content: flex-start;
}

.justify-content-end {
    justify-content: flex-end;
}

.justify-content-center {
    justify-content: center;
}

.justify-content-between {
    justify-content: space-between;
}

.justify-content-around {
    justify-content: space-around;
}

.justify-content-evenly {
    justify-content: space-evenly;
}

.align-items-start {
    align-items: flex-start;
}

.align-items-end {
    align-items: flex-end;
}

.align-items-center {
    align-items: center;
}

.align-items-baseline {
    align-items: baseline;
}

.align-items-stretch {
    align-items: stretch;
}

.align-self-start {
    align-self: flex-start;
}

.align-self-end {
    align-self: flex-end;
}

.align-self-center {
    align-self: center;
}

.align-self-baseline {
    align-self: baseline;
}

.align-self-stretch {
    align-self: stretch;
}

.u-1of10 {
    flex: 0 0 10%;
}

.u-1of5 {
    flex: 0 0 20%;
}

.u-1of4 {
    flex: 0 0 25%;
}

.u-3of10 {
    flex: 0 0 30%;
}

.u-1of3 {
    flex: 0 0 33.3333%;
}

.u-1of6 {
    flex: 0 0 66.6666%;
}

.u-2of5 {
    flex: 0 0 40%;
}

.u-1of2 {
    flex: 0 0 50%;
}

.u-3of5 {
    flex: 0 0 60%;
}

.u-7of10 {
    flex: 0 0 70%;
}

.u-3of4 {
    flex: 0 0 75%;
}

.u-4of5 {
    flex: 0 0 80%;
}

.u-9of10 {
    flex: 0 0 90%;
}

.u-full {
    flex: 0 0 100%;
}

.f-s-0 {
    flex-shrink: 0;
}

.flex-1 {
    flex: 1;
}

// layout
.position-relative {
    position: relative;
}

.position-absolute {
    position: absolute;
}

.inline {
    display: inline;
}

.block {
    display: block;
}

.inline-block {
    display: inline-block;
}

.float-right {
    float: right;
}

.float-left {
    float: left;
}

.clearfix {
    clear: both;
}

// text
@for $i from 1 through 50 {
    .fz-#{$i} {
        font-size: $i+px;
    }
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.vertical-middle {
    vertical-align: middle;
}

.text-right {
    text-align: right;
}

.font-bold {
    font-weight: bold;
}

.line-height-base {
    line-height: 1;
}

.line-height-small {
    line-height: 1.5;
}

.line-height-large {
    line-height: 2;
}

.ellipsis {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    word-break: break-all;
}

.ellipsis-2 {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: break-all;
}

// color
.color-info {
    color: #5C8EF2;
}

.color-success {
    color: #18C588;
}

.color-error {
    color: #F56C6C;
}

.color-warning {
    color: #ffa810;
}


.color-fff {
    color: #fff;
}

.color-ddd {
    color: #ddd;
}

.color-999 {
    color: #999;
}

.color-666 {
    color: #666;
}

.color-333 {
    color: #333;
}

.color-000 {
    color: #000;
}

.w-full {
    width: 100%;
}

.h-full {
    height: 100%;
}

.bg-fff{
    background: #fff;
}
.cursor-p{
    cursor: pointer;
}